@echo off
set /a sum=0
call :add 10 30 sum
echo %sum%
pause
exit

:add
set /a %3=%1+%2
goto :eof
